﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Conventions;
using FluentNHibernate.Mapping;

namespace SimpleServiceBus.Persistence.NHibernate.Mapping.AutoMapping
{
    public class PrimaryKeyConvention : IIdConvention
    {
        public bool Accept(IIdentityPart target)
        {
            return true;
        }

        public void Apply(IIdentityPart target)
        {
            target.GeneratedBy.HiLo("100");
        }
    }
}
